package com.wfg.controller;

import com.yomahub.tlog.core.annotation.TLogAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 王富贵
 * @description:
 * @createTime: 2022年12月05日 18:48:13
 */
@Slf4j
@RestController
public class TLogController {
    @GetMapping("/tlog/{id}")
    @TLogAspect("id")
    public String testTLog(@PathVariable int id) {
        log.info("接收到请求参数了");
        return "成功";
    }

    @GetMapping("/")
    public String testNative(){
        log.info("hello spring native");
        return "hello spring native";
    }
}